package com.example.demo.bean.response;

import com.example.demo.table.UserTable;

import java.util.Date;

public class UserInfoResponse {

    public UserInfoResponse(UserTable userTable) {
        this.userID = userTable.getUserID();
        this.userName = userTable.getUserName();
        this.nickName = userTable.getNickName();
        this.sex = userTable.getSex();
        this.avatar = userTable.getAvatar();
        this.age = userTable.getAge();
        this.openId = userTable.getOpenId();
        this.createTime = userTable.getCreateTime();
    }

    private Integer userID;//用户ID

    private String userName;//用户账号(手机号)

    private String nickName;//用户昵称

    private Integer sex;//用户性别

    private String avatar;//用户头像

    private Integer age;//用户年龄

    private String openId;//用户微信登录

    private Date createTime;//当前用户创建时间

}